package com.huilian.iotbox.admin.service;

import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.po.Permission;
import com.huilian.iotbox.data.vo.UserInfo;

import java.util.List;

/**
 * @author 少凡
 * @date 2020/2/26 16:41
 */
public interface PermissionService {

    ServerResponse add(Permission permission, UserInfo userInfo);

    ServerResponse update(Permission permission, UserInfo userInfo);

    ServerResponse delete(Integer id, UserInfo userInfo);

    ServerResponse getMenus(List<Integer> roleIdList, Boolean nav, String permissionId, UserInfo userInfo, Integer platformType);

    List<Permission> findNoAuthList(Integer platformType);

    ServerResponse getListByRoleId(List<Integer> roleIdList, Boolean noAuth, Integer platformType);
}
